#if ! defined(OUTILS_H)
#define OUTILS_H

#include <string>
#include <sstream>


#define NEURONES_ENTREE 10
#define NEURONES_INTER 20
#define NEURONES_SORTIE 4
#define POPULATION 100
#define NB_JEUX 100
#define NB_ITERATION 10000
#define NB_GEN 1000

#define TIME_STEP 64

using namespace std;

struct structInfosSortie {
  float xBalle;
  float yBalle;
  int butMarque;
  //si le robot a dépassé la limite
  bool depassement;
};

inline void debug(string texte)
{
   #ifdef DEBUG
   cout << "[DEBUG]" << texte << endl;
   #endif
}

inline string FloatToString(float value)
{
  std::ostringstream oss;
  oss << value;

  string ma_string = oss.str();

  return ma_string;

}

inline string IntToString(int value)
{
  std::ostringstream oss;
  oss << value;

  string ma_string = oss.str();

  return ma_string;

}

#endif
